package com.h3c.nem.mapstruct;

import com.h3c.nem.dto.TbOfferLanguageDTO;
import com.h3c.nem.entity.TbOfferLanguage;
import com.h3c.nem.vo.TbOfferLanguageVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenyifan
 * @date 2022/6/17 11:42
 */
@Mapper
public interface TbOfferLanguageMapstruct {
    TbOfferLanguageMapstruct INSTANCE = Mappers.getMapper(TbOfferLanguageMapstruct.class);

    /**
     * 实体类列表转成VO列表
     * @param languages
     * @return
     */
    List<TbOfferLanguageVO> entityList2VOList(List<TbOfferLanguage> languages);

    /**
     * DTO列表转成实体类列表
     * @param languageDTOS
     * @return
     */
    List<TbOfferLanguage> dtoList2EntityList(List<TbOfferLanguageDTO> languageDTOS);
}
